package org.springframework.web.modules;

/**
 * @author float.lu
 */
public class ModuleConfiguration {

    private String mapping;

    private boolean sync;

    public static ModuleConfiguration builder(){
        return new ModuleConfiguration();
    }

    public ModuleConfiguration setMapping(String mapping) {
        this.mapping = mapping;
        return this;
    }

    public ModuleConfiguration setSync(boolean sync) {
        this.sync = sync;
        return this;
    }


    public ModuleConfiguration build(){
        return this;
    }


    public String getMapping() {
        return mapping;
    }

    public boolean isSync() {
        return sync;
    }

}
